import Vue from 'vue';
import VueRouter from 'vue-router';

import Home from '../components/page/home.vue'
import Login from '../components/page/login.vue'

Vue.use(VueRouter)

export default new VueRouter({
	routes: [{
			path: '/', //登录页面的路由要定义为/，这样在项目运行时就可以直接加载
			name: 'login',
			component: Login
		},
		{
			path: '/home',
			name: 'home',
			component: Home
		}
	]

})
